{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'xadmin/layui/css/layui.css' %}">
</head>
<body>
    <div class="lanmu-info info hidden">

    </div>
    <script src="{% static 'xadmin/layui/layui.all.js'%}"></script>
    <script>
        var node_tree = {{ node_tree_json | safe }};

        layui.use('tree', function(){
            var tree = layui.tree;

            tree.render({
                elem: '.lanmu-info',
                data: node_tree,
                showCheckbox: true,
                id: 'id',
            })
            tree.chooseDataInit()
        })
    </script>
</body>
</html>

